{% extends "base.html" %}
{%block scripts%}
<script type="text/javascript" src="{{MEDIA_URL}}js/jquery.js"></script>
{% if video %}
<script type="text/javascript" src="{{MEDIA_URL}}/js/flowplayer-3.0.2.min.js"></script>
{% endif %}
{%endblock%}
{%block title%}Phillip's Eportfolio - {{page.name}}{%endblock%}
{%block content_title%}{{page.name}}{%endblock%}
{%block content%}

	{{page.content|safe}}
	<br />
	{% if disp %}
		<br />
		<div id="essay_block">
		{% for essays in essay %}
			<strong>Essay Title: {{essays.title}}</strong> <small>uploaded on {{essays.creation_date}}</small> <br />
			{{essays.description|safe}} <br />
			Download: <a href="http://c-pj.net{{essays.pdf}}" title="{{essays.title}}">Here</a> 
			{% if valid %}
				 | <a href="http://c-pj.net/admin/essays/essay/{{essays.id}}/">Edit listing</a>
			{% endif %}
			<div id="essay_border"></div>
		{% endfor %}
		</div>
	<br />
	{% endif %}
	<small>Last updated by {{page.creator}} on {{page.creation_date}}</small><br />
	{% if valid %}
	<br />
		<a class="b_a_text" href="http://c-pj.net/admin/pages/page/{{page.id}}/">Edit page</a>
	{% endif %}
{%endblock%}
